const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    btnClick(e, str) {
        if (str == 'close') {
            this.node.destroy()
        }
    }
}
